<template>
  <!-- 登录头部 -->
  <div class="head-box">
    <div class="head-middle">
      <div class="left-content">
        <div class="img"><img src="@/static/images/d_logo.png"
               alt="" /></div>
        <!-- <div class="edition">企业版</div> -->
      </div>
      <div class="right-content">
        <div class="hotline">
          <div class="customer">客服热线</div>
          <div class="number">4008-539-529</div>
        </div>
        <div class="home">
          <el-button type="text"
                     style="border: 0px"
                     @click="home">官网</el-button>
        </div>
        <!-- <el-popover placement="bottom"
                    width="400"
                    trigger="hover">
          <div class="code-popover">
            <div class="left-img">
              <img src="@/static/images/pcApplet.png">
              <span class="span-row">发货方小程序</span>
            </div>
            <div class="middle-img">
              <img src="@/static/images/wlyPlus.png">
              <span class="span-row">货物在途全知道</span>
            </div>
          </div>
          <div slot="reference"
               class="phone">
            <p>移动端</p>
          </div>
        </el-popover> -->
        <div>
          <el-button type="text"
                     size="small"
                     @click="register">企业注册</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HeaderTerm",
  methods: {
    home () {
      // http://www.wlyuan.com.cn/
      window.open('http://www.wlyuan.com.cn/', '_bank')
    },
    register () {
      this.$emit('headRegister')
    }
  }
};
</script>

<style scoped>
.head-box {
  width: 100%;
  height: 55px;
  background-color: var(--prev-bg-white);
}
.head-middle {
  width: 1220px;
  height: 55px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.left-content,
.right-content {
  display: flex;
  align-items: center;
}
.img img {
  /* width: 110px; */
  height: 38px;
  padding-right: 26px;
  border-right: 1px solid #f0f0f0;
}
.edition {
  width: 90px;
  height: 36px;
  /* background: var(--prev-color-primary); */
  opacity: 1;
  border-radius: 3px;
  color: var(--prev-color-primary);
  line-height: 36px;
  font-size: 24px;
  text-align: center;
  margin-left: 26px;
  letter-spacing: 1px;
}
.hotline {
  display: flex;
  align-items: center;
  padding-right: 26px;
  /* border-right: 1px solid #f0f0f0; */
}
.customer {
  color: var(--prev-color-primary);
  font-size: 14px;
  padding-top: 4px;
  padding-right: 8px;
}
.number {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--prev-color-primary);
  opacity: 1;
}
.home >>> .el-button--text {
  font-size: 14px !important;
  padding: 0 26px;
  font-weight: 400 !important;
  line-height: 20px !important;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  color: var(--prev-color-primary);
  letter-spacing: 1px;
}
.phone {
  padding: 0 26px;
  padding-top: 2px;
  display: flex;
  align-items: center;
  color: var(--prev-color-primary);
  cursor: pointer;
}
.iconSty {
  color: var(--prev-color-primary);
}
.code-popover {
  display: flex;
  justify-content: space-around;
}
.middle-img,
.left-img {
  width: 150px;
  text-align: center;
}
.left-img img {
  width: 150px;
  height: 150px;
}
.middle-img img {
  width: 150px;
  height: 150px;
}
.span-row {
  font-size: 16px;
  font-weight: bold;
  color: var(--prev-color-primary);
}
</style>
